import {nanoid} from "nanoid";

export const getUserTempId = () => {
	let tempId = localStorage.getItem('tempId');
	if (tempId) {
		return tempId
	} else {
		tempId = nanoid();
		localStorage.setItem("tempId", tempId);
	}
}